package misc;

import java.awt.Component;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;

import javax.swing.AbstractCellEditor;
import javax.swing.JButton;
import javax.swing.JOptionPane;
import javax.swing.JTable;
import javax.swing.table.TableCellEditor;

import com.toedter.calendar.JCalendar;

public class CustomDateEditor extends AbstractCellEditor implements TableCellEditor, ActionListener {
	private JCalendar cal;
    private String date;
	
	public CustomDateEditor() {
		super();
		cal = new JCalendar();
		//cal.addActionListener(this);
	}
	
    @Override
    public Object getCellEditorValue() {
    	return date;
    }

	@Override
	public void actionPerformed(ActionEvent e) {
		//date = 
        fireEditingStopped();
	}

	@Override
	public Component getTableCellEditorComponent(JTable table, Object value, boolean isSelected, int row, int column) {
		return null;
	}
}
